<template>
	<view class="content">
		<!-- <image class="logo" src="/static/logo.jpeg"></image> -->
		<view class="text-area">
			<p>当前登录用户{{ store.loginInfo.nickname }}</p>
		</view>
		<!-- <uv-avatar src="/static/icon_category/a-083_shucai.png" shape="square"></uv-avatar>1 -->
		<!-- <uv-avatar src="/static/icon_category/a-083_shucai.png" shape="square"></uv-avatar>2 -->
		<uv-button type="primary" icon="map" text="添加账单记录" @click="createBillRecord()"></uv-button>
	</view>
</template>

<script setup>
	import { ref } from 'vue';
	import { useStore } from 'vuex';
	const store = useStore().state;

	//创建账单
	const createBillRecord = async () =>{
		// 跳转到对应的页面
		uni.navigateTo({
			url: '/pages/createBillRecord/createBillRecord' 
		});
	}

</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
